package cn.com.gzheroli.service.bfw;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


import cn.com.gzheroli.bfw.pojo.base.TSUser;
import cn.com.gzheroli.core.common.model.json.AjaxJson;
import cn.com.gzheroli.tag.vo.easyui.ZNodes;
import net.sf.json.JSONObject;


public interface UserService{

	public TSUser checkUserExits(TSUser user);
	public List<Map>  checkUserExits(String username,String pwd);
	public String getUserRole(TSUser user);
	public void pwdInit(TSUser user, String newPwd);
	/**
	 * 获取用户数量
	 * @param dataMap{vipId:vip级别,departName:部门名称,userName:用户登录名称,realName:用户中文名称,mobilePhone:手机,officePhone:办公电话}
	 * @return
	 */
	public Long selectUserAcount(Map dataMap);
	/**
	 * 获取用户列表
	 * @param dataMap{vipId:vip级别,departName:部门名称,userName:用户登录名称,realName:用户中文名称,mobilePhone:手机,officePhone:办公电话,maxResults:获取记录数,firstResult:获取记录开始,pageSize:每页显示数量}
	 * @return
	 */
	 public List<TSUser> getUserList(Map dataMap);
	 public TSUser getTSUser(String id);
	/**
	 * 判断这个角色是不是还有用户使用
	 *@date   2013-11-12
	 *@param id
	 *@return
	 */
	public int getUsersOfThisRole(String id);
	public List<ZNodes> getUserMenu(ZNodes znode,String userId);
	public Long getUserCount(Map dataMap);
	
	public List<TSUser> getUserListByRole(Map map);
	
	public TSUser getUserById(String id);
	public String getPartDeptNames(String partids);
}
